﻿using GeneralServices.Model;
using System;
using System.Collections.Generic;
using System.Data.Entity.Validation;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ComposantRefentielV2.BLL
{
    public interface IBLLReferentiel
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        List<IDTO> SelectAllBusiness();

        /// <summary>
        /// 
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        int SaveChanges(List<IDTO> list);

        /// <summary>
        /// 
        /// </summary>
        void RollBack();

        /// <summary>
        /// 
        /// </summary>
        /// <param name="element"></param>
        /// <returns></returns>
        int Remove(object element);

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        IDTO CreateElement();

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        IEnumerable<DbEntityValidationResult> GetValidationErrors();
    }
}
